package cn.zl.ymcc.service.impl;

import cn.zl.ymcc.entity.PayOrder;
import cn.zl.ymcc.mapper.PayOrderMapper;
import cn.zl.ymcc.service.PayOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import io.swagger.v3.oas.annotations.tags.Tag;


/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zl
 * @since 2025-10-31
 */
import com.alipay.easysdk.factory.Factory;
@Tag(name = "PayOrder服务实现")

@Service
public class PayOrderServiceImpl extends ServiceImpl<PayOrderMapper, PayOrder> implements PayOrderService {

    @Override
    public void closeOrder(String orderNo) throws Exception {
        Factory.Payment.Common().cancel(orderNo);
    }
}
